package com.ruoyi.project.relation.domain.dto;

import org.shoukaiseki.common.exception.MessageVirtualException;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;

public class OneWayBusinessRelationDO {

    @NotBlank(message = "ownerName 不能为空")
    private String ownerName;

    @NotNull(message = "ownerId 不能为空")
    private Long ownerId;


    /**
     * 不推荐使用该方式,只为spring构造
     */
    public OneWayBusinessRelationDO() {

    }

    public OneWayBusinessRelationDO(String ownerName, Long ownerId) {
        this.ownerName = ownerName;
        this.ownerId = ownerId;
    }

    public Long getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Long ownerId) {
        this.ownerId = ownerId;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }



}

